﻿using System.Collections;
using System.Collections.Generic;

using UnityEngine;

public static class UGUIListPool<T>
{
    private static readonly UGUIObjectPool<List<T>> s_ListPool = new UGUIObjectPool<List<T>>(null, delegate (List<T> l)
    {
        l.Clear();
    });

    public static List<T> Get()
    {
        return UGUIListPool<T>.s_ListPool.Get();
    }

    public static void Release(List<T> toRelease)
    {
        UGUIListPool<T>.s_ListPool.Release(toRelease);
    }
}
